<?php
/**
 *  extention.func.php 用户自定义函数库
 *
 * @copyright			(C) 2005-2010 PHPCMS
 * @license				http://www.phpcms.cn/license/
 * @lastmodify			2010-10-27
 */

function pc_session_start() {
    $session_storage = 'session_'.pc_base::load_config('system','session_storage');
    return pc_base::load_sys_class($session_storage);
}

/**
 * 转义字符串
 * @param $string
 * @return string
 */
function ps_stripslashes($string) {
    !defined('MAGIC_QUOTES_GPC') && define('MAGIC_QUOTES_GPC', get_magic_quotes_gpc());
    if(MAGIC_QUOTES_GPC) {
        return stripslashes($string);
    } else {
        return $string;
    }
}
?>